*::after, *::before {
  box-sizing: border-box;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #111;
  transition: .5s;
}

body:has(.card[data-color="clr1"]:hover) {
  background: #D18C55;
}

body:has(.card[data-color="clr2"]:hover) {
  background: #FFF6A3;
}

body:has(.card[data-color="clr3"]:hover) {
  background: #EEB973;
}

body:has(.card[data-color="clr4"]:hover) {
  background: #F7F3EA;
}

.container {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.container .card {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .5s;
}

.container .card .img_box {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 4px solid rgba(0,0,0,.2);
}

.container .card .img_box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s;
  border-radius: 10px;
}

.container .card:hover .img_box img {
  opacity: .5;
}

.container .card .glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(#fff2, transparent);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 15px 15px rgba(0,0,0,.25);
  backdrop-filter: blur(15px);
  border-radius: 10px;
  scale: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  transition: .5s ;
}

.container .card:hover {
  transform: rotate(-15deg);
}

.container .card:hover .glass {
  scale: 1;
  opacity: 1;
  transform: rotate(20deg);
}

.container .card .glass::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: rgba(255,255,255,.05);
}

.container .card .glass h3 {
  font-size: 1.25em;
  color: #FFF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
  line-height: .8em;
}

.container .card .glass h3 span {
  font-weight: 400;
  font-size: .5em;
}

.container .card ul {
  position: absolute;
  bottom: 14px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.container .card ul li {
  list-style: none;
}

.container .card ul a{
  color: #FFF8;
  font-size: 1.25em;
  scale: 0;
  transition: .25s;
  transition-delay: scale calc(.2s * var(--i));
}

.container .card:hover ul a {
  scale: 1;
}

.container .card ul a:hover {
  color: #FFF;
}